import http from "@/utils/http";

export function selectLabelList(data) {
  return http.get({ desc: "查询标签字典", url: "/label", data });
}

export function insertBlog(data) {
  return http.post({ desc: "新增文章", url: "/blog", data });
}

export function updateBlog(data) {
  return http.post({ desc: "更新文章内容", url: `/blog/${data.id}`, data });
}
export function uploadFile(data) {
  return http.file({ desc: "上传文件", url: `/upload`, data });
}

export function selectBlogOne(data) {
  return http.get({ desc: "selectBlogOne", url: `/blog/${data.id}`, data });
}
